package com.itcast.Service.ServiceImpl;

import com.itcast.Dao.DaoImpl.PublicDaoImpl;
import com.itcast.Dao.PublicDao;
import com.itcast.Service.PublicService;

public class PublicServiceImpl implements PublicService {
    private PublicDao dao1;

    @Override
    public void save() {
        System.out.println("servicesave***");
        dao1.save();
    }

    public void setDao1(PublicDao dao1) {
        this.dao1 = dao1;
    }
}
